package com.godofgamblers.hotelmanagementsystem.service.imp;

import com.godofgamblers.hotelmanagementsystem.mapper.Discount_StoreMapper;
import com.godofgamblers.hotelmanagementsystem.pojo.Discount_Store;
import com.godofgamblers.hotelmanagementsystem.service.Discount_StoreService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/10/15 19:50
 */

@Service
@Data
public class Discount_StoreServiceImp implements Discount_StoreService {
    @Autowired
    private Discount_StoreMapper discount_storeMapper;//自动装配
    @Override
    public void insertItem(Discount_Store discount_store) {
        discount_storeMapper.insertItem(discount_store);
    }

    @Override
    public List<Discount_Store> showAllItem() {
        return discount_storeMapper.showAllItem();
    }

    @Override
    public void deleteAllItem() {
        discount_storeMapper.deleteAllItem();
    }
}
